class CreateCategories < ActiveRecord::Migration
  def self.up
    create_table :categories do |t|
			t.string :name, :null=>false
			t.integer :category_id
			t.string :slug
			t.text :notes
      t.timestamps
    end

		add_index :categories, [:category_id], :name=>"fk_category"
  end

  def self.down
    drop_table :categories
  end
end
